target("backtrace_local")
	set_kind("$(kind)")
	add_includedirs(
		"include",
		"$(projectdir)/common/dfxutil",
		"$(projectdir)/interfaces/common",
		"$(projectdir)/interfaces/innerkits/procinfo/include",
		"$(projectdir)/interfaces/innerkits/unwinder/include",
		{public=true}
	)
	add_headerfiles(
		"include/*.h",
		"$(projectdir)/common/dfxutil/*.h",
		"$(projectdir)/interfaces/common/*.h",
		"$(projectdir)/interfaces/innerkits/procinfo/include/*.h",
		"$(projectdir)/interfaces/innerkits/unwinder/include/*.h"
	)
	-- add_defines("is_ohos=0")
	add_files(
		"backtrace_local.cpp",
		"backtrace_local_thread.cpp",
		"dfx_kernel_stack.cpp"
	)
	add_packages("boundscheck", "c_utils", "hilog")
	add_deps("dfx_hilog", "dfx_util", "dfx_procinfo", "unwinder")
